import request from '/@/utils/request';
//新增申请
export async function postApprove(params?: object) {
	return await request({
		url: '/approve',
		method: 'post',
		data: params,
	});
}

//修改
export async function editApprove(params?: object) {
	return await request({
		url: '/approve',
		method: 'put',
		data: params,
	});
}

//查询单个实例
export async function queryApprove(params?: object) {
	return await request({
		url: '/approve',
		method: 'get',
		params: params,
	});
}

//查询单个实例
export async function queryApproveList(params?: object) {
	return await request({
		url: '/approve/pager',
		method: 'post',
		data: params,
	});
}

//审核
export async function approveSubmit(params?: object) {
	return await request({
		url: '/approve/approvesubmit',
		method: 'post',
		params: params,
	});
}
//审核
export async function cancelApprove(params?: object) {
	return await request({
		url: '/approve/CancelApprove',
		method: 'post',
		params: params,
	});
}

//审核
export async function approveDelete(params?: object) {
	return await request({
		url: '/approve/Delete',
		method: 'delete',
		params: params,
	});
}
//物品选择
export async function queryApproveEvidence(data?: object) {
	return await request({
		url: '/approve/queryApproveEvidence',
		method: 'post',
		data,
	});
}
